package com.education.domain ; 

import java.io.Serializable; 
import java.util.Date;

import com.education.framework.util.calendar.CalendarUtil;

/* 
 *  
 * Fri Jul 18 05:42:15 CST 2014 
 */  

public class App  extends DomainEntity implements Serializable {  

  private static final long serialVersionUID = 2L; 

    // datebase colume is svn_tag 
    private String svnTag; 

    // datebase colume is svn_trunk 
    private String svnTrunk; 

    // datebase colume is svn_passwd 
    private String svnPasswd; 

    // datebase colume is appname 
    private String appname; 

    // datebase colume is project_id 
    private int projectId; 
    private Project project;

    // datebase colume is appcode 
    private String appcode; 

    // datebase colume is app_remark 
    private String appRemark; 

    // datebase colume is appurl 
    private String appurl; 

    // datebase colume is svn_user 
    private String svnUser; 

    // datebase colume is version 
    private String version; 

    private String releasePath;
    
    private String checkOutFlag;  //是否CHECKOUT
    private String checkoutDateBegin;
    private String checkoutDateEnd;
    public String getSvnTag(){ 
        return this.svnTag; 
    } 

    public void setSvnTag(String svnTag){ 
        this.svnTag=svnTag; 
    } 


    public String getSvnTrunk(){ 
        return this.svnTrunk; 
    } 

    public void setSvnTrunk(String svnTrunk){ 
        this.svnTrunk=svnTrunk; 
    } 


    public String getSvnPasswd(){ 
        return this.svnPasswd; 
    } 

    public void setSvnPasswd(String svnPasswd){ 
        this.svnPasswd=svnPasswd; 
    } 


    public String getAppname(){ 
        return this.appname; 
    } 

    public void setAppname(String appname){ 
        this.appname=appname; 
    } 


    public int getProjectId(){ 
        return this.projectId; 
    } 

    public void setProjectId(int projectId){ 
        this.projectId=projectId; 
    } 


    public String getAppcode(){ 
        return this.appcode; 
    } 

    public void setAppcode(String appcode){ 
        this.appcode=appcode; 
    } 


    public String getAppRemark(){ 
        return this.appRemark; 
    } 

    public void setAppRemark(String appRemark){ 
        this.appRemark=appRemark; 
    } 


    public String getAppurl(){ 
        return this.appurl; 
    } 

    public void setAppurl(String appurl){ 
        this.appurl=appurl; 
    } 


    public String getSvnUser(){ 
        return this.svnUser; 
    } 

    public void setSvnUser(String svnUser){ 
        this.svnUser=svnUser; 
    } 


    public String getVersion(){ 
        return this.version; 
    } 

    public void setVersion(String version){ 
        this.version=version; 
    }

	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

	public String getReleasePath() {
		return releasePath;
	}

	public void setReleasePath(String releasePath) {
		this.releasePath = releasePath;
	}

	public String getCheckOutFlag() {
		return checkOutFlag;
	}

	public void setCheckOutFlag(String checkOutFlag) {
		this.checkOutFlag = checkOutFlag;
	}

	public String getReleasePathReal() {
		return getReleasePath().replaceAll("\\$\\{nowstamp\\}", CalendarUtil.dateToString(new Date(),"yyyyMMdd"));
	}
}